package ezi

class StopperService {

  static expose = ['flex-remoting']
  static scope = 'session'
  def crawlerService

  def stopSearching() {
    crawlerService.crawler.pauseSearching()
  }

  def resumeSearching(SearchType type) {
    crawlerService.crawler.resumeSearching(type)
  }
}
